import { get } from "../util/request";

export const getBannerAPI = () => get(`/banner`);
export const getPersonalizedAPI = () => get(`/personalized`);
export const getNewsongAPI = () => get(`/personalized/newsong`);

//精品歌单标签列表
export const playlistAPI = () => get("/playlist/highquality/tags");

//每日推荐歌曲
export const getDailySongAPI = () => get(`/recommend/songs`);

//排行榜
export const ToplistAPI = (id) => get("/toplist/detail?id=" + id);

// 歌单内歌曲的接口
export const loadCateAPI = (id) => get("/playlist/detail?id=" + id);

//搜索热榜
export const getSearchHotDetailAPI = () => get(`/search/hot/detail`);

//搜索
export const getSearchAPI = (key) => get(`/search?keywords=${key}`);

//获取精品歌单列表
export const playListAP = (title)=>get(`/top/playlist/highquality?cat=`+title)

//私人FM
export const privateFM =()=> get('/personal_fm')